<?php

class C_about extends CI_Controller {

	public function index(){
		//Loading page header.
		$this->load->view('templates/v_header');
		
		//Determine if the user is loged in.
		if ($this->session->userdata('user_loged_in')) {
			//Loading meny for loged in users.
			$this->load->view('templates/v_menu_logedin');
		}
		else {
			//Load basic meny (for guests).
			$this->load->view('templates/v_menu_basic');
		}
		
		//Loading actual page and page footer.
		$this->load->view('pages/v_about');
		$this->load->view('templates/v_footer');
	}
}
?>